# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit cmake-utils cvs eutils

ECVS_SERVER="cvs.savannah.nongnu.org:/sources/ecume"
ECVS_AUTH="pserver"
ECVS_USER="anonymous"
ECVS_PASS=""
ECVS_MODULE="lux"
ECVS_LOCALNAME="luxrender"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
DESCRIPTION="A GPL unbiased renderer"
HOMEPAGE="http://www.luxrender2.org/"

DEPEND="x11-libs/fltk
		dev-libs/boost
		media-libs/openexr"

RDEPEND="${DEPEND}"

S=${WORKDIR}/${ECVS_LOCALNAME}

CMAKE_IN_SOURCE_BUILD="true"

src_install() {
	cmake-utils_src_install
	
	doicon "${FILESDIR}/lux.png"
	domenu "${FILESDIR}/lux.desktop"
}
